/**                           _ooOoo_
 *                           o8888888o
 *                           88" . "88
 *                           (| -_- |)
 *                            O\ = /O
 *                        ____/`---'\____
 *                      .   ' \\| |// `.
 *                       / \\||| : |||// \
 *                     / _||||| -:- |||||- \
 *                       | | \\\ - /// | |
 *                     | \_| ''\---/'' | |
 *                      \ .-\__ `-` ___/-. /
 *                   ___`. .' /--.--\ `. . __
 *                ."" '< `.___\_<|>_/___.' >'"".
 *               | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *                \ \ `-. \_ __\ /__ _/ .-` / /
 *         ======`-.____`-.___\_____/___.-`____.-'======
 *                            `=---='
 *
 *         .............................................
 *                 佛祖保佑             永无BUG
 *
 *       Created by k on 2015/5/8. email:527565073@qq.com
 */
window.onload=function(){
    var obox=document.getElementById("f-tag");
    var obj=obox.getElementsByTagName("a");
    //随机方法
    function rand(num){
        return parseInt(Math.random()*num+1);
    }
    //随机颜色值
    function randomcolor(){
        var str=Math.ceil(Math.random()*16777215).toString(16);
        if(str.length<6){
            str="0"+str;
        }
        return str;
    }
    //循环
    for( len=obj.length,i=len;i--;){
        obj[i].className="color"+rand(5);
        obj[i].style.zIndex=rand(5);
        obj[i].style.fontSize=rand(14)+12+"px";
        // obj[i].style.background="#"+randomcolor();
        /*obj[i].style.color="#"+randomcolor();
        obj[i].onmouseover=function(){
            this.style.background="#"+randomcolor();
        }*/
        obj[i].onmouseout=function(){
            this.style.background="none";
        }
    }
}


